import api from './api/index'
App({
  onLaunch: function (options) {
    if (options.userid) {
      const refereeid = options.userid
      wx.setStorageSync('refereeid', refereeid)
    }
  },
  globalData: {
    userInfo: null,
    imgUrl: [],
    imgUrlLen: 0,
    date: []
  },
  $api: api
})